<template>
  <div>
    <div class="bg" v-if="showLoading">
      <img src="@assets/image/load.jpg" alt="">
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      showLoading:true
    }
  }
}
</script>

<style lang="scss" scoped>
.bg{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,.6);
  z-index: 10;
  display: flex;
  align-items: center;
  img{
    width: 100%;
  }
}
</style>